include $(TOPDIR)/rules.mk

PKG_NAME:=ubtn-nano2-loco5-pico2-wifiClient
PKG_VERSION:=0.0
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)

include $(INCLUDE_DIR)/package.mk

define Package/ubtn-nano2-loco5-pico2-wifiClient
  SECTION:=admin
  CATEGORY:=Internet-Wifi
  SUBMENU:=Configuration
  TITLE:=Ubiquiti picostation2 nanostation5 Nanostation2 Network preconfiguration as router
#  DEPENDS:=+webif-theme-urbalink +ub-standart-settings +urbalink-ap-config
  VERSION:=$(PKG_VERSION)-$(PKG_RELEASE)
endef

define Build/Prepare
	$(call Build/Prepare/Default)
	$(CP) -a files $(PKG_BUILD_DIR)
	find $(PKG_BUILD_DIR)/files -name 'CVS' -o -name '.svn' -o -name '*~' | $(XARGS) rm -rf
endef

define Build/Configure
endef

define Build/Compile
endef

define Package/ubtn-nano2-loco5-pico2-wifiClient/install
	$(CP) -a $(PKG_BUILD_DIR)/files/* $(1)/
endef

$(eval $(call BuildPackage,ubtn-nano2-loco5-pico2-wifiClient))
